package cn.iocoder.yudao.module.voice.web.base;

import cn.iocoder.yudao.module.voice.cc.cache.CacheService;
import cn.iocoder.yudao.module.voice.cc.command.GroupHandler;
import cn.iocoder.yudao.module.voice.cc.fs.FsListen;
import cn.iocoder.yudao.module.voice.cc.service.AgentService;
import cn.iocoder.yudao.module.voice.cc.service.CallCdrService;
import cn.iocoder.yudao.module.voice.cc.websocket.handler.WsLogoutHandler;
import cn.iocoder.yudao.module.voice.cc.websocket.handler.WsNotReadyHandler;
import cn.iocoder.yudao.module.voice.cc.websocket.handler.WsReadyHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;


/**
 * Created by caoliang on 2020/11/2
 */
@Component
public class BaseController {
    protected Logger logger = LoggerFactory.getLogger(getClass());

    @Autowired
    protected CallCdrService callCdrService;

    @Autowired
    protected CacheService cacheService;

    @Autowired
    protected AgentService agentService;

    @Autowired
    protected GroupHandler groupHandler;

    @Autowired
    protected WsReadyHandler readyHandler;

    @Autowired
    protected WsNotReadyHandler notReadyHandler;

    @Autowired
    protected WsLogoutHandler logoutHandler;

    @Autowired
    protected FsListen fsListen;

    @Value("${agent.token.key:ToIV23TaievkWwZl}")
    protected String tokenKey;


}
